package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:ShopMall
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/8/12 13:31
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_shop_mall")
public class ShopMall implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 券名
     */
    @Column(name = "coupon_id", length = 32)
    private String couponId;

    @Column(name = "create_time", length = 32)
    private String createTime;

    @Column(name = "update_time", length = 32)
    private String updateTime;
    /**
     * 1、积分兑换券  2、积分+金额兑换券  3、金额
     */
    @Column(name = "value_type", columnDefinition = "TINYINT default 0")
    private Integer valueType;
    /**
     * 券价值积分
     */
    @Column(name = "integral", columnDefinition = "INT")
    private Integer integral;
    /**
     * 券价格
     */
    @Column(name = "price",  length = 32)
    private String price;

    /**
     * 商城券库存
     */
    @Column(name = "remain_total", columnDefinition = "INT default 0")
    private Integer remainTotal;

    /**
     * 商城券总库存
     */
    @Column(name = "sum_total", columnDefinition = "INT default 0")
    private Integer sumTotal;

    /**
     * 当前优惠券每天可以购买的最大数量
     */
    private Integer count;


    @Column(name = "status_show", columnDefinition = "TINYINT default 0")
    private Integer statusShow;

    @Column(name = "status_remove", columnDefinition = "TINYINT default 0")
    private Integer statusRemove;

    /**
     * 开始购买时间
     */
    private String buyTimeStart;

    /**
     * 结束购买时间
     */
    private String buyTimeEnd;

    /**
     * 优惠券有效期内限制购买数量
     */
    private Integer buyTimeCount;

    /**
     * 展示开始时间
     */
    private String showTimeStart;

    /**
     * 展示结束时间
     */
    private String showTimeEnd;

}
